package zy.blue7.flowable.controller;

import org.flowable.engine.ProcessEngine;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import zy.blue7.flowable.service.PersonService;

import javax.annotation.Resource;

@RestController
public class HelloController {
    @Resource
    private ProcessEngine processEngine;
    @Resource
    private PersonService personService;

    @GetMapping("/")
    public Object index() {
        System.out.println(processEngine);

        return personService.getById(1);
    }
}
